<script src="jquery.min.js" type="text/javascript"></script>
		
<script type="text/javascript">

	$(document).ready(function () {
		// Your code here
		setUpMainNavi();
	});

	$(window).resize(function () {
		setUpMainNavi();
	});

	function setUpMainNavi() {
		if ($("#mdt_nav").css("float") == "left") //Orientation is right of content
  		{
  			var bodyWidth = $("body").width();
  			var contentWidth = $("#mdt_content_body").width();
  			var naviGesWidth = (bodyWidth - contentWidth) / 2;

  			$("#mdt_nav").css("width", naviGesWidth + "px");
  		}
	}

</script>

<link rel="Stylesheet" href="mdt_nav.css" type="text/css" />